import axios from "@/axios/index";

export function login(username, password) {
    return axios.post("/admin/login", {
        username,
        password
    })
}

//获取管理员信息
export function get_info(username, password) {
    return axios.get("/admin/get_info")
}

//退出登录
export function logout() {
    return axios.get("/admin/logout")
}

//修改密码接口
export function update_password(data) {
    return axios.post("/admin/update_password", data)
}